<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>审批历史明细</title>
    <#include "/pubHeadStyle.html">
</head>
<body style="overflow: auto;">
<table id="detail" lay-filter="detail"></table>

<script>
    layui.config({
        base: serverPath.systemPath + staticPath.systemPath //静态资源所在路径
    }).extend({
        index: 'index' //主入口模块
    }).use(['index','table', 'setter', 'element', 'util'], function () {
        var setter = layui.setter
            , element = layui.element
            , $ = layui.$
            , util = layui.util;
        var table =layui.table;
        var modelId = "${runId}";

        table.render({
            elem: '#detail' //指定原始表格元素选择器（推荐id选择器）
            ,url: serverPath.workflowPath + setter.workflowLinkPath + "processRun/flowVarsAndValue?runId="+modelId
            ,cols: [
                [
                {title: '表单变量' ,colspan:3,align: 'center'} ],
                [
                {field: 'name',title: '变量名'} ,
                {field: 'type',title: '类型'} ,
                {field: 'textValue',title: '变量值',templet: function(d){
                    if(d.type=="double"){
                        return d.doubleValue;
                    }else{
                        return d.textValue;
                    }
                    }}
                ]
            ]
            ,where: {runId: modelId }
        });

    });
</script>
</body>
</html>